import org.apache.ibatis.annotations.Param;
import pojo.Group;

import java.util.ArrayList;
/**
 * @author Administrator
 */
public interface GroupMapper {

    ArrayList<Integer> getGroups(String account);

    ArrayList<String> getGroupName(String groupAccount);

    ArrayList<String> getGroupAccounts(String account);

    void bulidGroup(@Param("groupAccount") String groupAccount,@Param("groupName") String groupName , @Param("hostAccount") String hostAccount,@Param("memberAccount") String memberAccount);


    ArrayList<String> getMembers(String groupAccount);

    ArrayList<String> getHostAccount(String groupAccount);

    void agreeAply(@Param("groupAccount") String groupAccount,@Param("groupName") String groupName , @Param("hostAccount") String hostAccount,@Param("memberAccount") String memberAccount);

    void memeberExit(String account);

    void hostExit(String groupAccount);

}
